package com.wzdigit.wms.basic.mapper.core.mid;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.mid.IfTransferHeader;
import com.wzdigit.wms.basic.client.request.transfer.SearchIfTransferManageRequest;
import com.wzdigit.wms.basic.client.response.transfer.IfTransferManageResponse;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 接口中间表-调拨单表头 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-03-17
 */
@MyBatisRepository
public interface IfTransferHeaderMapper extends BaseMapper<IfTransferHeader> {

	/**
	 * 获取所有的调拨中间表
	 * @param dto
	 * @param beginDate
	 * @param endDate
	 * @return
	 */
	List<IfTransferManageResponse> getListIfTransferManage(
			@Param("dto") SearchIfTransferManageRequest dto,
			@Param("beginDate") Date beginDate,
			@Param("endDate") Date endDate);

    int updateFlagById(Integer ifTransferHeaderId);
}
